home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / send_udp < prev    next >
Text File  |  2001-04-06  |  1KB  |  28 lines

  1. SYNOPSIS
  2.         int send_udp(string host, int port, string message)
  3.         int send_udp(string host, int port, int * message)
  4.  
  5. DESCRIPTION
  6.         Sends The message in an UDP packet to the given host and port
  7.         number.
  8.  
  9.     The efun causes a privilege violation. If USE_DEPRECATED is in effect,
  10.         it first tries privilege violation ("send_imp"), and, if this one
  11.         returns 0, then it tries privilege violation ("send_udp").
  12.         If USE_DEPRECATED is not in effect, it just tries privilege
  13.         violation ("send_udp").
  14.  
  15.         Returns 1 on success, 0 on failure.
  16.  
  17.         Note: On some machines a failed send_udp() will not be registered
  18.         until the next send_udp() - the latter one might return '0' even
  19.         if itself was successful.
  20.  
  21. HISTORY
  22.         LDMud 3.2.9 renamed this efun from send_imp(), and also changed the
  23.           privilege violation string and the apply names. This old version
  24.           is available if the driver is compiled with USE_DEPRECATED.
  25.  
  26. SEE ALSO
  27.         query_udp_port(E), receive_udp(M)
  28.